package com.beibie.yunpicturebackend.annotation;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * Created by IntelliJ IDEA.
 * User: 北别
 * Date: 2025-02-22
 * Description: 权限校验注解
 * Version: 1.0
 */

@Target(ElementType.METHOD)  //指定注解生效范围
@Retention(RetentionPolicy.RUNTIME)  //指定什么时候生效
public @interface AuthCheck {


    /**
     * 必须具有某个角色
     *
     */

    String mustRole() default "";

}
